<%--
  Created by IntelliJ IDEA.
  User: User
  Date: 2024/9/3
  Time: 16:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <h1>用户登录</h1>
    <form action="<%=request.getContextPath()%>/login">
        用户名: <input type="text" name="username"> <br>
        密码: <input type="password" name="password"> <br>
        <input type="submit" value="登录">
        <span style="color:red;">
            <%
                String msg= (String) request.getAttribute("msg");
                if(null!=msg){
                    out.print(msg);
                }
            %>

        </span>
    </form>
</body>
</html>
